package com.example.chinesenation.Config;

import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author sakuraFallingDown
 * @version 1.0
 * @date 2021/4/10 23:12
 */
//Redis集群配置 Redisson类的配置，暂时停止集群使用
@Configuration
public class RedissonConfig {
    //@Bean
    /*
    public RedissonClient redissonClient(){

        Config config=new Config();
        config.useClusterServers()
                .addNodeAddress("1.15.81.4:6379")
                .setPassword("yuan");
        return Redisson.create(config);
    }

     */
}
